package cn.com.cetccst.datacenter.policy;

import androidx.room.Database;
import androidx.room.RoomDatabase;

import cn.com.cetccst.datacenter.policy.dao.BWAppDao;
import cn.com.cetccst.datacenter.policy.dao.ComplianceDao;
import cn.com.cetccst.datacenter.policy.dao.ComplianceRecordDao;
import cn.com.cetccst.datacenter.policy.dao.PolicyDao;
import cn.com.cetccst.datacenter.policy.dao.RestrictionDao;
import cn.com.cetccst.datacenter.policy.dao.RestrictionStatusDao;
import cn.com.cetccst.datacenter.policy.entity.BWAppEntity;
import cn.com.cetccst.datacenter.policy.entity.ComplianceEntity;
import cn.com.cetccst.datacenter.policy.entity.ComplianceRecordEntity;
import cn.com.cetccst.datacenter.policy.entity.PolicyEntity;
import cn.com.cetccst.datacenter.policy.entity.RestrictionEntity;
import cn.com.cetccst.datacenter.policy.entity.RestrictionStatusEntity;

@Database(entities = {PolicyEntity.class,
        ComplianceEntity.class,
        ComplianceRecordEntity.class,
        RestrictionEntity.class,
        BWAppEntity.class,
        RestrictionStatusEntity.class},
        version = 4)
public abstract class PolicyDatabase extends RoomDatabase {
    public abstract PolicyDao getPolicyDao();

    public abstract ComplianceDao getComplianceDao();

    public abstract ComplianceRecordDao getCompliancePendingDao();

    public abstract RestrictionDao getRestrictionDao();

    public abstract RestrictionStatusDao getRestrictionStatusDao();

    public abstract BWAppDao getBWAppDao();
}
